<template>
  <div class="videoItem">
    <div class="videoItem-head">
      <div class="videoItem-head-tit">
        <div class="videoItem-head-tit-text">{{title}}</div>
        <div class="videoItem-head-tit-back"></div>
      </div>
    </div>
    <slot></slot>
  </div>
</template>

<script>
  export default {
    name: 'videoItem',
    props: {
      title: {}
    }
  }
</script>

<style lang="less" scoped>
  * {
    box-sizing: border-box;
  }

  .videoItem {
    margin-bottom: 10px;
    position: relative;
    width: 100%;

    .videoItem-head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      position: absolute;
      left: 0;
      top: 0;
      z-index: 10;

      .videoItem-head-tit {
        min-width: 61px;
        max-width: 120px;
        height: 18px;
        background: #2196F3;
        line-height: 18px;
        text-align: center;
        font-size: 12px;
        box-shadow:-2px 3px 3px -2px #2196F3;
        position: relative;
        font-weight:500;
        display: flex;

        .videoItem-head-tit-text {
          color: #fff;
          text-align: left;
          padding-left: 5px;
          overflow: hidden;
        }

        .videoItem-head-tit-back {
          position: absolute;
          top: 0;
          right: -18px;
          border-top: 9px solid #2196F3;
          border-left: 9px solid transparent;
          border-right: 9px solid #2196F3;
          border-bottom: 9px solid transparent;
          transform: rotate(-180deg);
          box-shadow: 7px -3px 3px -2px #2196F3;
        }
      }
    }
  }
</style>
